import request from '@/utils/request'

// 查询法律文书列表
export function list(query) {
  return request({
    url: '/archives/writ/list',
    method: 'get',
    params: query
  })
}

// 查询法律文书详细
export function get(writId) {
  return request({
    url: '/archives/writ/' + writId,
    method: 'get'
  })
}

// 新增法律文书
export function add(data) {
  return request({
    url: '/archives/writ',
    method: 'post',
    data: data
  })
}

// 修改法律文书
export function update(data) {
  return request({
    url: '/archives/writ',
    method: 'put',
    data: data
  })
}

// 删除法律文书
export function del(writId) {
  return request({
    url: '/archives/writ/' + writId,
    method: 'delete'
  })
}
